import request from "@/utils/request";
const api = "api/adminIp";
export default class index {
  static getSystemsList(params: any = {}) {
    return request({
      url: `${api}/list`,
      method: "get",
      params,
    });
  }
  static addSystems(data: any = {}) {
    return request({
      url: `${api}/add`,
      method: "post",
      data,
    });
  }
  static updateSystems(data: any = {}) {
    return request({
      url: `${api}/update`,
      method: "post",
      data,
    });
  }
  static delSystems(id: number) {
    return request({
      url: `${api}/del`,
      method: "post",
      data: { id: id },
    });
  }
  static updateStatus(id: number, status: number) {
    return request({
      url: `${api}/status`,
      method: "post",
      data: { id: id, status: status },
    });
  }
    static userList(params: any = {}) {
        return request({
            url: `api/operation/users`,
            method: "get",
            params,
        });
    }
    static ipOptList(params: any = {}) {
        return request({
            url: `${api}/ipOptList`,
            method: "get",
            params,
        });
    }
  // static Status(id:number,data:any={}) {
  //   return request({
  //     url: `api/adminIp/status`,
  //     method: 'post',
  //     data
  //   })
  // }
}
